﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace pdfer.Syntax
{
    [Obsolete("建议使用 PSTokenV2")]
    internal class PSToken
    {
        public Int32 Index { get; set; }

        public TokenType Type { get; set; }

        public Int32 Length { get; set; }

        public String Token { get; set; }
    }

    [Obsolete("建议使用 TokenType2")]
    public enum TokenType
    {
        None = -1,
        KEYWORD = 0,
        SYMBOLOpen = 1,
        SYMBOLClose = 2,
        IDENTIFIER = 3,
        INT_CONST = 4,
        NUMBER_CONST = 5,
        STRING_CONST = 6,
        STRING_HEX_CONST = 7,
    }
}
